home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / h / hfmounterv2.0.lha / Install_HFM < prev    next >
Text File  |  1992-09-02  |  12KB  |  414 lines

  1. ;$VER:Script for HFMounter 2.0
  2.  
  3. ;********************************************************************************
  4. ;
  5. ; Read All System information
  6. ;
  7. ;********************************************************************************
  8. (set osver (/ (getversion "LIBS:version.library") 65536))
  9.  
  10. ( if (= osver 37)  (set workbench "2.0"))
  11.  
  12. ( if (= osver 38)  (set workbench "2.1"))
  13.  
  14. ( if (= osver 39)  (set workbench "3.0"))
  15.  
  16. ( if (= osver 40)  (set workbench "3.1"))
  17.  
  18. ( if (= osver 41)  (set workbench "4.0"))
  19.  
  20.  
  21. (run "type >RAM:lan EnvArc:sys/locale.prefs opt h")
  22.  
  23. (set runstring (cat "search" " RAM:lan "))
  24.  
  25. (set english "")  (set german  "")
  26.  
  27. (set runstring1 (cat runstring "\"deutschland\""))   (if (= (run runstring1) 0) (set german1 "Deutsch"))
  28.  
  29. (set runstring1 (cat runstring "\"english\""))   (if (= (run runstring1) 0) (set english1 "English"))
  30.  
  31. ;********************************************************************************
  32. ;
  33. ;ASK DEFAULT LANG
  34. ;
  35. ;********************************************************************************
  36. (set #langQuestion (cat "The following were found in Locale:\n\n" english1 "\n"german1"\n\nSelect one of the installers supported Languages."
  37.                    )
  38. )
  39.  
  40. (set LAN (askchoice (choices "German (Deutsch)" "English"
  41.                          (prompt #langQuestion)
  42.                          (help "Select a Language")
  43.                          (default lang)
  44.                     )
  45.          )
  46. )
  47.  
  48. (set @hfm-dest "SYS:C/")
  49.  
  50. ;********************************************************************************
  51. ;
  52. ;English Information
  53. ;
  54. ;********************************************************************************
  55.  
  56.  
  57. (set #Intro-Txt (cat "\n\nWelcome to \n\n"
  58.                      "HFMounter 2.0\n"
  59.                      "Hard Disk Install Script\n\n"
  60.                      "HFMounter is ©1995 by SuicideSoft\n\n"
  61.                 )
  62. )
  63.  
  64. (set #MinReqOS (cat "The following are the MINIMUM REQUIREMENTS!\n"
  65.                     "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
  66.                     "Kickstart 2.1, **You only have " workbench "**\n"
  67.                )
  68. )
  69.  
  70. (set #Path-Txt (cat "Select the target directory for HFM."
  71.                )
  72. )
  73.  
  74. (set #Path-Help (cat "\nThis section lets you choose the\n"
  75.                      "target directory to install HFMounter 2.0 in.\n\n"
  76.                      "Default is SYS:C/\n\n\n"
  77.                  @askdir-help
  78.                 )
  79. )
  80.  
  81. (set #Copyfile-txt (cat "Copying HFM to "
  82.                    )
  83. )
  84.  
  85. (set #copycat-txt (cat "Copying Catalog-file to locale:"
  86.                   )
  87. )
  88.  
  89. (set #devcopy-txt (cat "Copying fmsdisk.device to devs:"
  90.                   )
  91. )
  92.  
  93. (set #devcopy-help (cat "\nThis section installs the fmsdisk.device\n"
  94.                         "in yoour system's devs: directory"
  95.                    )
  96. )
  97.  
  98. (set #mountl-txt (cat "\nCopying HF-Mountlist to devs:\n"
  99.                 )
  100. )
  101.  
  102. (set #mountl-help (cat "\nThis mountlist consists of the\n"
  103.                        "entries for 12  HF-Units. The programm\n"
  104.                        "needs it in devs:\n"
  105.                   )
  106. )
  107.  
  108. (set #bgui-txt (cat "\nCopying BGUI-Library to LIBS:\n"
  109.                )
  110. )
  111.  
  112. (set #bgui-help (cat "\n The BGUI-Library is responsible for the\n"
  113.                      "neat GUI of HFMounter. Destination is LIBS:\n"
  114.                 )
  115. )
  116.  
  117.  
  118. (set #Pathdriver-Txt (cat "Select the target directory for \n"
  119.                           "the example dosdriver."
  120.                      )
  121. )
  122.  
  123. (set #Pathdriver-Help (cat "\nThis section lets you choose the target directory\n"
  124.                            "to install an example dosdriver in.\n\n"
  125.                            "Default is SYS:storage/dosdrivers/\n\n\n"
  126.                        @askdir-help
  127.                       )
  128. )
  129.  
  130. (set #driver-txt (cat "\n Copying example-dosdriver\n"
  131.                  )
  132. )
  133.  
  134.  
  135. (set #driver-help (cat "\n An example dosdriver will be copiied\n"
  136.                        " that may be duplicated and renamed.\n\n"
  137.                        " Infos about using dosdrivers in AmigaOS dos-manual\n"
  138.                   )
  139. )
  140.  
  141. (set #Pathguide-Txt (cat "Select the target directory for HFM_e.guide."
  142.                     )
  143. )
  144.  
  145. (set #Pathguide-Help (cat "\nThis section lets you choose the "
  146.                           "target directory to install HFM.guide in.\n\n"
  147.                           "Default is locale:help/deutsch/\n\n\n"
  148.                       @askdir-help
  149.                      )
  150. )
  151.  
  152. (set #guide-txt (cat "\n Copying Amigaguide document to: \n\n"
  153.                 )
  154. )
  155.  
  156. (set #guide-help (cat "\n This section copies the documentation in amigaguide-\n"
  157.                       " format in a directory of your choice.\n"
  158.                       " In case you are uncertain about anything in HFMounter,\n"
  159.                       " you should refer to this helptext.\n"
  160.                  )
  161. )
  162.  
  163. (set #Assign-Help-Txt (cat "\nA script located in the target directory will make "
  164.                           "the Assigns. The User-Startup will be patched in order "
  165.                           "to call this script.\n\n\n"
  166.                       @startup-help
  167.                      )
  168. )
  169.  
  170. ;********************************************************************************
  171. ;
  172. ;German Information
  173. ;
  174. ;********************************************************************************
  175. (if (= LAN 0)
  176.  
  177. (
  178.  
  179. (set #Intro-Txt (cat"\n\nWillkommen zum \n\n"
  180.                     "HFMounter 2.0\n"
  181.                     "Hard Disk Install Script\n\n"
  182.                     "HFMounter ist ©1995 von SuicideSoft\n\n"
  183.                 )
  184. )
  185.  
  186. (set #MinReqOS (cat "Das Folgende ist MINIMAL erforderlich\n"
  187.                     "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
  188.                     "Kickstart 2.1, **Du hast nur " workbench "**\n"
  189.                )
  190. )
  191.  
  192. (set #Path-Txt (cat "Bestimme das Zielverzeichnis\n"
  193.                     "         fuer HFM           \n"
  194.                )
  195. )
  196.  
  197. (set #Path-Help (cat "\nHier kannst Du das Zielverzeichniss\n"
  198.                      "fuer den HFMounter 2.0 angeben.\n\n"
  199.                      "      Default ist SYS:C/       \n\n\n"
  200.                  @askdir-help
  201.                 )
  202. )
  203.  
  204. (set #Copyfile-txt (cat "Kopiere HFM nach "
  205.                    )
  206. )
  207.  
  208. (set #Copycat-txt (cat "Kopiere deutsches Catalogfile nach locale:catalogs/deutsch/"
  209.                   )
  210. )
  211.  
  212. (set #copycat-help (cat "\nHier kannst Du Dich fuer das Deutsche Sprachfile fuer\n"
  213.                         "HFMounter entscheiden, es wird nach Localae:catalogs/deutsch\n"
  214.                         "kopiert und beim naechsten Start von HFMounter eingelesen"
  215.                    )
  216. )
  217.  
  218. (set #devcopy-txt (cat "Kopiere das fmsdisk.device nach devs:"
  219.                   )
  220. )
  221.  
  222. (set #devcopy-help (cat "\nHier wird das fmsdisk.device installiert\n"
  223.                         "Es gehört ins DEVS: Verzeichnis"
  224.                    )
  225. )
  226.  
  227. (set #mountl-txt (cat "\nKopiere die HF-Mountlist nach Devs:\n"
  228.                 )
  229. )
  230.  
  231. (set #mountl-help (cat "\nDie Mountlist enthaelt die Einträge von\n"
  232.                        " 12  HF-Units. Das Programm benoetigt sie in DEVS:\n"
  233.                   )
  234. )
  235.  
  236. (set #bgui-txt (cat "\n Kopiere die BGUI-Library nach LIBS:\n"
  237.                )
  238. )
  239.  
  240. (set #bgui-help (cat "\n Die BGUI-Library ist fuer die Oberfläche des\n"
  241.                      " HFMounters zustaendig. Sie gehört nach LIBS:\n"
  242.                 )
  243. )
  244.  
  245. (set #Pathdriver-Txt (cat "Wähle das Zielverzeichnis\n"
  246.                           "fuer den Beispielsdosdriver.\n"
  247.                      )
  248. )
  249.  
  250. (set #Pathdriver-Help (cat "\n Hier kannst Du das Zielverzeichnis\n"
  251.                            " fuer einen Beispielsdosdriver angeben.\n\n"
  252.                            " Default ist SYS:storage/dosdrivers/\n\n\n"
  253.                        @askdir-help
  254.                       )
  255. )
  256.  
  257. (set #driver-txt (cat "\n Kopiere Beispielsdosdriver \n"
  258.                  )
  259. )
  260.  
  261.  
  262. (set #driver-help (cat "\n Es wird ein Beispielsdosdrver kopiert\n"
  263.                        " der dupliziert und umbenannt werden kann.\n\n"
  264.                        " Infos zu Dosdrivern findest Du im AmigaOS Dos-Manual\n"
  265.                   )
  266. )
  267.  
  268.  
  269. (set #Pathguide-Txt (cat "\n Wähle das Zielverzeichnis\n"
  270.                          " fuer den Amigaguide Hilfstext.\n"
  271.                     )
  272. )
  273.  
  274. (set #Pathguide-Help (cat "\n Hier kannst Du das Zielverzeichnis\n"
  275.                           " fuer den HFM.guide angeben.\n\n"
  276.                           " Default ist locale:help/deutsch/\n\n\n"
  277.                       @askdir-help
  278.                      )
  279. )
  280.  
  281. (set #guide-txt (cat "\n Kopiere Amigaguide-Hilfstext nach: \n\n"
  282.                 )
  283. )
  284.  
  285. (set #guide-help (cat "\n Hier wird die Dokumentation im Amigaguide-Format\n"
  286.                       " in das Verzeichnis Deiner Wahl kopiert.\n"
  287.                       " Falls am HFMounter etwas unklar sein sollte,\n"
  288.                       " kannst Du dort Informationen zum Programm finden\n"
  289.                  )
  290. )
  291.  
  292. (set #Assign-Help-Txt (cat "\nEin Skript im Zielverzeichnis wird das nötige Assign\n"
  293.                           "machen. Die User-Startup wird gepatcht um das Skript\n"
  294.                           "dann aufzurufen.\n\n\n"
  295.                       @startup-help
  296.                      )
  297. )
  298.  
  299. ))
  300.  
  301. ;
  302. ; Main Script
  303. ;
  304. (if (< osver 38)  (abort #MinReqOS) )
  305. (message #Intro-txt)
  306.  
  307. (complete 0)
  308.  
  309. (set target (askdir (prompt (cat #Path-Txt))
  310.                     (help   (cat #Path-Help))
  311.                     (default @hfm-dest)
  312.             )
  313. )
  314.  
  315. (set @hfm-dest target)
  316.  
  317. (copyfiles (prompt (cat #Copyfile-txt " " @hfm-dest))
  318.            (help @copy-files-help)
  319.            (source "c/HFM")
  320.            (dest (tackon @hfm-dest ""))
  321.            (confirm)
  322. )
  323.  
  324. (complete 20)
  325.  
  326. ;(set @copycat 0 )
  327. ;
  328. ;(set @copycat (askchoice (choices "NO" "YES")
  329. ;                           (prompt "\nDo you want to install the german catalog-file?\n\n"
  330. ;                                   "Möchtest Du das deutschsprachige Catalog-File installieren?\n")
  331. ;                           (help (cat #copycat-help))
  332. ;                           (default @copycat)
  333. ;                         )
  334. ;)
  335. ;
  336. (set @catdest "locale:catalogs/deutsch")
  337.  
  338. (if (= LAN 0) (copyfiles (prompt (cat #copycat-txt " " ))
  339.                               (source "catalogs/deutsch/HFM.catalog")
  340.                               (dest (tackon @catdest ""))
  341.                               (help @copy-files-help)
  342.                               (confirm)
  343.                    )
  344. )
  345.  
  346. (complete 40)
  347.  
  348. (copylib (prompt (cat #devcopy-txt " " ))
  349.                   (help (cat #devcopy-help))
  350.                   (source "devs/fmsdisk.device")
  351.                   (dest (tackon "devs:" ""))
  352.                   (confirm)
  353. )
  354.  
  355. (copyfiles (prompt (cat #mountl-txt " " ))
  356.                      (help (cat #mountl-help))
  357.                      (source "devs/hf-mountlist")
  358.                      (dest (tackon "devs:" ""))
  359.                      (confirm)
  360. )
  361.  
  362. (complete 60)
  363.  
  364. (copylib (prompt (cat #bgui-txt " " ))
  365.                    (help (cat #bgui-help))
  366.                    (source "libs/bgui.library")
  367.                    (dest (tackon "libs:" ""))
  368.                    (confirm)
  369. )
  370.  
  371. (set target (askdir (prompt (cat #Pathdriver-Txt " " ))
  372.                     (help (cat #Pathdriver-Help))
  373.                     (default "Sys:storage/dosdrivers/")
  374.                     (newpath)
  375.             )
  376. )
  377.  
  378. (complete 80)
  379.  
  380. (copyfiles (prompt (cat #driver.txt " "))
  381.                      (help (cat #driver-help))
  382.                      (source "devs/dosdrivers/HF0")
  383.                      (dest (tackon target ""))
  384.                      (infos)
  385.                      (confirm)
  386. )
  387.  
  388. (set target (askdir (prompt (cat #Pathguide-Txt))
  389.                     (help (cat #Pathguide-Help))
  390.                     (default "locale:help/deutsch/")
  391.                     (newpath)
  392.             )
  393. )
  394.  
  395. (if (= LAN 0) (copyfiles (prompt (cat #guide-txt target))
  396.                                  (help (cat #guide-help))
  397.                                  (source "HFM.guide")
  398.                                  (dest (tackon target ""))
  399.                                  (infos)
  400.                                  (confirm)
  401.                    )
  402. )
  403.  
  404. (if (= LAN 1) (copyfiles (prompt (cat #guide-txt target))
  405.                                  (help (cat #guide-help))
  406.                                  (source "HFM_e.guide")
  407.                                  (dest (tackon target ""))
  408.                                  (infos)
  409.                                  (confirm)
  410.                    )
  411. )
  412. (message "\n Have\n   PHUN\n       guys!!!")
  413. (complete 100)
  414.